package main

import (
	"controller/sysController"
	"controller/templateController"
	"github.com/gin-gonic/gin"
	"spirit/web/core"
)

func main() {
	router := core.InitFramework(registerRouter)
	router.Run(core.GetConfiguration().App.ServerPort)
}

func registerRouter(r *gin.Engine) {
	sysController.Router(r)
	templateController.Router(r)
}
